<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Facelet Title</title>
        <link href="./resources/primefaces-sunny/theme.css" rel="stylesheet" type="text/css" />
    </h:head>
    <h:body>
        <p:panel id="changeFM">
            <h:form>
                <table cellspacing="5">
                    <tr>
                        <td colspan="2">Messages: <br/><h:messages/></td>
                    </tr>
                    <tr>
                        <td width="50%"><h:outputText value="Old Password: "/></td>
                        <td width="50%"><p:password minLength="4" maxlength="15" feedback="false" required="true" requiredMessage="Old Password can not be blank" value="#{admin.oldPass}"/></td>
                    </tr>
                    <tr>
                        <td width="50%"><h:outputText value="New Password: "/></td>
                        <td width="50%"><p:password minLength="4" maxlength="15" feedback="false" required="true" requiredMessage="New Password can not be blank" value="#{admin.newPass}"/></td>
                    </tr>
                    <tr>
                        <td width="50%"><h:outputText value="Confirm Password: "/></td>
                        <td width="50%"><p:password minLength="4" maxlength="15" feedback="false" required="true" requiredMessage="Confirm Password can not be blank" value="#{admin.rePass}"/></td>
                    </tr>
                    <tr>
                        <td width="50%" align="right"><p:commandButton value="Change" update="changeFM" actionListener="#{admin.changePassword()}"/></td>
                        <td width="50%" align="left"><p:commandButton value="Cancel" onclick="changePwd.hide()"/></td>
                    </tr>
                </table>
            </h:form>
        </p:panel>
    </h:body>
</html>

